import { BadRequestException } from '@nestjs/common'

export const fail = (field: string, message: string) => {
	throw new BadRequestException({
		error: 'Bad Request',
		message: [{ field, message }],
		statusCode: 400
	})
}
